package com.fstec.ks.master.bean;

import java.util.Date;

import com.fstec.ks.master.vo.ExamServerVO;
import com.fstec.ks.master.vo.ServerRoundVO;

public class ExamServerBean {
	// 考试服务器Id
	private String id;
	// 考试服务器名称
	private String name;
	// 考试服务器Ip地址
	private String ipAddr;
	// 考试服务器注册考场数
	private int roomCount;
	// 考试服务器最后连接监测服务器时间
	private Date lastConnTime;
	//服务器状态(0未连接,1已连接)
	private byte status;
	// 考试服务器封场备份时间
	private Date backupTime;
	//试卷包下载情况(0x01主包,0x02切片,0x04密钥)
	private int paperDown;
	//报名考生数
	private int examineeCount;
	//客户端开机数
	private int clientOpenCount;
	//监考签到考场数
	private int roomSignCount;
	//已登录考生数
	private int loginCount;
	//已交卷考生数
	private int submitCount;
	//数据上传时间
	private Date uploadTime;
	//场次数据备份时间
	private Date roundBackupTime;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIpAddr() {
		return ipAddr;
	}
	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}
	public int getRoomCount() {
		return roomCount;
	}
	public void setRoomCount(int roomCount) {
		this.roomCount = roomCount;
	}
	public Date getLastConnTime() {
		return lastConnTime;
	}
	public void setLastConnTime(Date lastConnTime) {
		this.lastConnTime = lastConnTime;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public Date getBackupTime() {
		return backupTime;
	}
	public void setBackupTime(Date backupTime) {
		this.backupTime = backupTime;
	}
	public int getPaperDown() {
		return paperDown;
	}
	public void setPaperDown(int paperDown) {
		this.paperDown = paperDown;
	}
	public int getExamineeCount() {
		return examineeCount;
	}
	public void setExamineeCount(int examineeCount) {
		this.examineeCount = examineeCount;
	}
	public int getClientOpenCount() {
		return clientOpenCount;
	}
	public void setClientOpenCount(int clientOpenCount) {
		this.clientOpenCount = clientOpenCount;
	}
	public int getRoomSignCount() {
		return roomSignCount;
	}
	public void setRoomSignCount(int roomSignCount) {
		this.roomSignCount = roomSignCount;
	}
	public int getLoginCount() {
		return loginCount;
	}
	public void setLoginCount(int loginCount) {
		this.loginCount = loginCount;
	}
	public int getSubmitCount() {
		return submitCount;
	}
	public void setSubmitCount(int submitCount) {
		this.submitCount = submitCount;
	}
	public Date getUploadTime() {
		return uploadTime;
	}
	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}
	public Date getRoundBackupTime() {
		return roundBackupTime;
	}
	public void setRoundBackupTime(Date roundBackupTime) {
		this.roundBackupTime = roundBackupTime;
	}
	public void setValues(ExamServerVO serverVo, ServerRoundVO roundVo) {
		// 考试服务器Id
		this.id=serverVo.getId();
		// 考试服务器名称
		this.name=serverVo.getExamServerName();
		// 考试服务器Ip地址
		this.ipAddr=serverVo.getIpAddr();
		// 场次考试考场数
		this.roomCount=roundVo.getRoomCount();
		// 考试服务器最后连接监测服务器时间
		this.lastConnTime=serverVo.getLastConnTime();
		//服务器状态(0未连接,1已连接)
		this.status=serverVo.getServerStatus();
		// 考试服务器封场备份时间
		this.backupTime=serverVo.getBackupTime();
		//客户端开机数
		this.clientOpenCount=serverVo.getClientOpenCount();
		//试卷包下载情况(0x01主包,0x02切片,0x04密钥)
		this.paperDown=roundVo.getPaperDown();
		//报名考生数
		this.examineeCount=roundVo.getExamineeCount();
		//监考签到考场数
		this.roomSignCount=roundVo.getRoomSignCount();
		//已登录考生数
		this.loginCount=roundVo.getLoginCount();
		//已交卷考生数
		this.submitCount=roundVo.getSubmitCount();
		//数据上传时间
		this.uploadTime=roundVo.getUploadTime();
		//场次数据备份时间
		this.roundBackupTime=roundVo.getBackupTime();
	}
}
